import Cookies from "js-cookies";

// 添加到Cookies
function addCookie(key,value) {
    Cookies.setItem(key,value);
}

// 获取指定的Cookie值
function getCookie(key) {
    console.log(Cookies.keys())
    return Cookies.getItem(key);
}

// 删除cookie值
function removeCookie(key) {
    Cookies.removeItem(key);
}

export default {
    addCookie,
    getCookie,
    removeCookie
}